package cn.candy.pet.mapper;

import cn.candy.basic.mapper.BaseMapper;
import cn.candy.pet.domain.PetDetail;

import java.util.List;

/**
 * 宠物明细Mapper接口
 */
public interface PetDetailMapper extends BaseMapper<PetDetail> {

    /**
     * 根据宠物id查询宠物明细
     * @param petId
     * @return
     */
    PetDetail loadByPetId(Long petId);


    /**
     * 根据宠物id删除宠物明细
     * @param petId
     */
    void removeByPetId(Long petId);

    /**
     * 根据宠物id修改宠物明细
     * @param detail
     */
    void updateByPetId(PetDetail detail);

    /**
     * 根据宠物id - 批量删除宠物明细
     * @param ids
     */
    void batchRemoveByPetIds(List<Long> ids);
}
